{php preg_match_all("/./us", dr_preg_html($fufeineirong),$match);}
{php $neirongshuliangmianfei = count($match[0]);}
<div class="d-kuan d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
	<span class="d-zitiyanse-hongse d-wenzi-14">
		免费阅读内容
	</span>

</div>
{if $member}
    <div id="tuzhanshi" class="d-neirong">
    	{if $shenhe == 0}
    	内容审核中...
    	{else}
    	{$fufeineirong}
    	{/if}
    </div>
{else}
    <div class="d-kuan d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
    	<div class="d-kuan-70 d-imgs">
    		<img src="{HOME_THEME_PATH}web/img/yuedu.png" width="40" height="40"/>
    	</div>
    	<div class="d-kuan">
    		<div class="pull-left">
    			<div class="d-wenzi-14 d-zitiyanse-hui">
    				请登录后阅读
    			</div>
    			<div class="d-wenzi-14 d-zitiyanse-hui"><img class="d-shang-2" src="{HOME_THEME_PATH}web/img/jinbi.svg" height="14" width="14"> {$neirongjifen} / {SITE_SCORE}阅读 </div>
    		</div>
    		<div class="d-kuan-1 d-you-10 pull-right d-quxian-0">
    			<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
    			<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
    				阅 读
    			</div>
    			</a>
    		</div>
    	</div>
    </div>
	<div class="d-kuan d-wenzi-juzhong d-quxian-0">
		
		<a class="d-kuai" href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
			<span class="d-zitiyanse-hui d-wenzi-14">
				剩余 {$neirongshuliangmianfei} 个文字  
				<span class="d-zitiyanse-hongse">免费</span> 阅读 
			</span>
			<br>
			<img src="{HOME_THEME_PATH}web/img/shengyu.png" width="30" height="30"/>
		</a>
	</div>
{/if}
<style>
	.d-imgs img {
		max-width: 100%;
		margin-bottom: 0px;
	}
</style>

